import request from '@/utils/request'

// 查询工单列表
export function listWorkOrderInfo(query) {
  return request({
    url: '/production/WorkOrderInfo/list',
    method: 'get',
    params: query
  })
}

// 查询工单详细
export function getWorkOrderInfo(id) {
  return request({
    url: '/production/WorkOrderInfo/' + id,
    method: 'get'
  })
}

// 新增工单
export function addWorkOrderInfo(data) {
  return request({
    url: '/production/WorkOrderInfo',
    method: 'post',
    data: data
  })
}

// 修改工单
export function updateWorkOrderInfo(data) {
  return request({
    url: '/production/WorkOrderInfo',
    method: 'put',
    data: data
  })
}

// 删除工单
export function delWorkOrderInfo(id) {
  return request({
    url: '/production/WorkOrderInfo/' + id,
    method: 'delete'
  })
}
